package com.niiwoo.activity.stage.enums.config;

public enum AppLinkCodeEnum {
	
	REGISTER("注册页面"), 
	LOGIN("登录页面"),

	INVEST_HOME("投资首页"), 
	AUTO_INVEST("自动投资页面"),

	APPLY_LOAN("借款首页/借款申请页面"), 
	LOAN_CREDIT("借款-授信资料页面"),

	MY_LOAN_REPAYMENT_DETAIL("我的-我的借款-还款详情"), 
	MY_LOAN_UN_FINISHED("我的-我的借款-进行中"),

	NOTICE("通知页面"), 
	MESSAGE("小报童页面"),
	ACTIVITY("活动页面"), 
	NIIWOO_ANNOUNCEMENT("你我公告页面"), 
	NIIWOO_COMMUNITY("你我社区页面"), 
	TOP_BOARD("名人堂页面"),

	APPLY_WITHDRAW("提现申请页面"),

	INVITE_FRIEND("邀请好友页面"), 
	MY_PRESENT("我的礼品页面/礼品使用页面"), 
	WELFARE_CENTER("福利中心/领取福利页面"),

	FINANCING_LIST("理财列表"), 
	EXPERIENCE_LOAN("理财体验标"),

	FINISH_USER_INFO("完善资料"), 
	CONFIRM_LOAN("确认借款"),

	BATCH_INVESTMENT("批量投资"), 
	INTEGRAL_MALL("积分商城");

	private String code; // 编码
	private String desc; // 描述

	private AppLinkCodeEnum(String desc) {
		this.code = this.name();
		this.desc = desc;
	}

	public static AppLinkCodeEnum getByCode(String code) {
		for (AppLinkCodeEnum appLinkEnum : AppLinkCodeEnum.values()) {
			if (appLinkEnum.getCode().equals(code)) {
				return appLinkEnum;
			}
		}
		return null;
	}

	public String getCode() {
		return code;
	}


	public String getDesc() {
		return desc;
	}

	public enum AppCodeEnum{
		REGISTER("注册"),
		LOGIN("登录"),
		FINANCING_LIST("理财列表"),
//		MY_PRESENT("我的礼品"),
		AUTO_INVEST("自动投资"),
		ACTIVITY("活动页面"),
//		APPLY_LOAN(1,AppLinkCodeEnum.APPLY_LOAN.getCode(),"借款首页"),
//		FINISH_USER_INFO(1,AppLinkCodeEnum.FINISH_USER_INFO.getCode(),"完善资料"),
//		NOTICE(1,AppLinkCodeEnum.NOTICE.getCode(),"动态-通知"),
//		LOAN_CREDIT(1,AppLinkCodeEnum.LOAN_CREDIT.getCode(),"授信资料"),
//		LOAN(1,AppLinkCodeEnum.APPLY_LOAN.getCode(),"借款申请"),
//		MY_LOAN_UN_FINISHED(1,AppLinkCodeEnum.MY_LOAN_UN_FINISHED.getCode(),"我的借款-进行中"),
//		APPLY_WITHDRAW(1,AppLinkCodeEnum.APPLY_WITHDRAW.getCode(),"提现申请"),
//		MY_LOAN_REPAYMENT_DETAIL(1,AppLinkCodeEnum.MY_LOAN_REPAYMENT_DETAIL.getCode(),"我的借款-还款详情"),
//		CONFIRM_LOAN(1,AppLinkCodeEnum.CONFIRM_LOAN.getCode(),"确认借款");
		BATCH_INVESTMENT("批量投资"),
		NEW_HAND_LIST("新手标专区"),
        WANT_BORROW("我要借款");
//	    INTEGRAL_MALL("积分商城")`1;
		
		String code;
		String text;
		
		AppCodeEnum(String text) {
			this.code = this.name();
			this.text = text;
		}

		public String getCode() {
			return code;
		}

		public String getText() {
			return text;
		}
	}
}
